<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    pageContext.setAttribute("info", "page属性范围");
    request.setAttribute("info", "request属性范围");
    session.setAttribute("info", "session属性范围");
    application.setAttribute("info", "application属性范围");
%>
<h1>获取 page 范围的变量: ${pageScope.info}</h1>
<h3>获取 request 范围的变量: ${requestScope.info}</h3>
<h3>获取 session 范围的变量: ${sessionScope.info}</h3>
<h3>获取 application 范围的变量: ${applicationScope.info}</h3>

<h1>从范围最小的域对象开始查找,找到为止，application>session>request>pageContext，${info}</h1>
</body>
</html>
